package com.ruoyi.web.service;

import java.util.List;
import com.ruoyi.web.domain.UserSettlement;

/**
 * 结算单Service接口
 * 
 * @author ruoyi
 * @date 2025-06-11
 */
public interface IUserSettlementService 
{
    /**
     * 查询结算单
     * 
     * @param id 结算单主键
     * @return 结算单
     */
    public UserSettlement selectUserSettlementById(Long id);

    /**
     * 查询结算单列表
     * 
     * @param userSettlement 结算单
     * @return 结算单集合
     */
    public List<UserSettlement> selectUserSettlementList(UserSettlement userSettlement);

    /**
     * 新增结算单
     * 
     * @param userSettlement 结算单
     * @return 结果
     */
    public int insertUserSettlement(UserSettlement userSettlement);

    /**
     * 修改结算单
     * 
     * @param userSettlement 结算单
     * @return 结果
     */
    public int updateUserSettlement(UserSettlement userSettlement);

    /**
     * 批量删除结算单
     * 
     * @param ids 需要删除的结算单主键集合
     * @return 结果
     */
    public int deleteUserSettlementByIds(Long[] ids);

    /**
     * 删除结算单信息
     * 
     * @param id 结算单主键
     * @return 结果
     */
    public int deleteUserSettlementById(Long id);

    /**
     * 根据订单id删除结算单
     * 
     * @param orderId 订单id
     * @return 结果
     */
    public int deleteUserSettlementByOrderId(Long orderId);
}
